import { http } from '@/utils/http'

/**
 * 首页-待办事项
 */
export const getHomeStatistics = (params) => {
  return http({
    method: 'POST',
    url: '/V5/workbench/toDoStatistics',
    data: params,
  })
}

/**
 * 首页-门店
 */
export const homeSiteList = (params) => {
  return http({
    method: 'POST',
    url: '/V5/siteLease/searchForStaff',
    // url: '/site/getHomeSiteList',
    data: params,
  })
}

/**
 * 首页-门店切换
 */
export const changeSite = () => {
  return http({
    method: 'POST',
    url: '/site/changeHomeSite',
    data: {},
  })
}

/**
 * 首页-获取当前账号通知消息
 */
export const noticeList = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userList',
    data: params,
  })
}


/**
 * 首页-获取当前账号未读消息数
 */
export const noticeUnnums = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userUnread',
    data: params,
  })
}

/**
 * 首页-消息详情
 */
export const noticeDetail = (params) => {
  return http({
    method: 'POST',
    url: '/V5/notice/userNoticeDetail',
    data: params,
  })
}